import request from '@/utils/request'
export default{
  save(video) {
    return request({
      url: '/admin/edu/video/save',
      method: 'POST',
      data: video
    })
  },
  getById(id) {
    return request({
      url: `/admin/edu/video/getById/${id}`,
      method: 'GET'

    })
  },
  update(video) {
    return request({
      url: '/admin/edu/video/update',
      method: 'PUT',
      data: video
    })
  },
  deleteById(id) {
    return request({
      url: `/admin/edu/video/deleteById/${id}`,
      method: 'DELETE'

    })
  }

}
